//
//  GeDanCollectionViewCell.m
//  LZMusicPlayer
//
//  Created by wulanzhou on 2016/11/7.
//  Copyright © 2016年 wulanzhou. All rights reserved.
//

#import "GeDanCollectionViewCell.h"

@implementation GeDanCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {

    if (self = [super initWithFrame:frame]) {
     
        [self addSubview:self.focusImageView];
        [self addSubview:self.titleLabel];
    }
    return self;
}


- (UIImageView *)focusImageView{

    if (!_focusImageView) {
        _focusImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, 90)];
    }
    return _focusImageView;
}

- (UILabel *)titleLabel{
    
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.focusImageView.frame)+2, self.bounds.size.width, 17)];
        _titleLabel.font = [UIFont systemFontOfSize:14.0f];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _titleLabel;
}

@end
